package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * 药铺：订单日志
 */
@FieldTypeAnnotation(tableName = "t_l_ck_drug_store_order", desc = "药铺订单日志", autoSave = true, uploadCk = true)
public class LogDrugStoreOrder extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "订单id;0:离线;-1:找回")
    private long type;

    @FieldTypeAnnotation(desc = "订单时间")
    private Date orderTime;

    @FieldTypeAnnotation(desc = "订单完成时间")
    private Date finishTime;

    @FieldTypeAnnotation(desc = "接待时间")
    private Date receiveTime;

    @FieldTypeAnnotation(desc = "处方")
    private int chuFang;

    @FieldTypeAnnotation(desc = "处方等级")
    private int lv;

    @FieldTypeAnnotation(desc = "订单数")
    private int orderNum;

    @FieldTypeAnnotation(desc = "消耗")
    private String consume = "";

    @FieldTypeAnnotation(desc = "收益")
    private String reward = "";

    public LogDrugStoreOrder(long userId, long type, Date orderTime, Date receiveTime, Date finishTime, int chuFang, int lv, int orderNum, String consume, String reward) {
        this.userId = userId;
        this.type = type;
        this.orderTime = orderTime;
        this.finishTime = finishTime;
        this.receiveTime = receiveTime;
        this.chuFang = chuFang;
        this.lv = lv;
        this.orderNum = orderNum;
        this.consume = consume;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
